package torres.map.effect;

import torres.entity.Entity;

/**
 * @author Torres
 * A special kind of AreaEffect that instantly decrements the number of lives of an Entity.
 */
@SuppressWarnings("serial")
public class InstantDeath extends AreaEffect {

	
	/**
	 * Creates a new InstantDeath AreaEffect with the default multiplier of 5.
	 */
	public InstantDeath() {	
		super(5);
	}
	
	/** 
	 * Applies the Effect to the specified Entity.
	 * @param entity The Entity to which the affect is being applied.
	 */
	public void applyEffect(Entity entity) {
		entity.setCurrLife(0);
	}
	
	/**
	 * Returns the String representation of this InstantDeath.
	 * @return The String representation of this InstantDeath.
	 */
	public String toString() {
		return "Instant Death: You are Dead!";
	}
}
